<?php
$this->breadcrumbs=array(
	'Products'=>array('index'),
	$model->prod_id=>array('view','id'=>$model->prod_id),
	'Update',
);
?>
<div class="heading">
    <h1><img src="<?php echo ShortUtil::themePath() ?>/images/default.png" />Update Product <?php echo $model->prod_id; ?></h1>
    
    <div class="controls">
        <?php
        if (isset($_GET['ajax'])) {
            echo CHtml::button('Create', array('class' => 'controls', 'onclick' => "location.href='".$this->createUrl('create', array('ajax'=>true))."'"));
        } else {
            echo CHtml::link("Manage", array('index'), array('class' => 'controls'));
            echo CHtml::link("Create", array('create'), array('class' => 'controls'));
            echo CHtml::link("View", array('view', 'id' => $model->prod_id), array('class' => 'controls'));
        }
     ?>
    </div>
</div>

<div class="content">
    <?php 
echo $this->renderPartial('_form', array(
        'model'=>$model,
        )); 
?>
</div>